package routers

import (
	"dog/controllers"
	beego "github.com/beego/beego/v2/server/web"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/user/register", &controllers.Usercontroller{}, "post:Register")
	beego.Router("/user/login", &controllers.Usercontroller{}, "get:Login")
	beego.Router("/title/add", &controllers.Titlecontroller{}, "post:Add")
	beego.Router("/dog/upload", &controllers.Dogcontroller{}, "post:Upload")
	beego.Router("/dog/add", &controllers.Dogcontroller{}, "post:Add")
	beego.Router("/dog/limit", &controllers.Dogcontroller{}, "get:Limit")
	beego.Router("/dog/del", &controllers.Dogcontroller{}, "get:Del")
}
